/*
	Copyright (C) 2013 Pontificia Universidad Catolica del Peru
	contact: http://avatar.inf.pucp.edu.pe/realidad-aumentada/
	address contact: Av. Universitaria 1801, San Miguel, Lima-Peru.
	
	This file is part of UbicAR PUCP.

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with This program.  If not, see <http://www.gnu.org/licenses/>.
*/
/*
	Authors: Alvaro Roger Agüero Sánchez, Rodolfo Javier Galvez Meza
	Pontificia Universidad Catolica del Peru
	Departamento de Ingeniería
*/

package org.grupoavatar.guiaubicua.auxiliares;

import org.grupoavatar.guiaubicua.mix.data.Servicios;
import org.grupoavatar.guiaubicua.mix.data.DataSource.DATASOURCE;

import android.graphics.drawable.Drawable;

public class Item {
    public final String text;
    private Drawable _img;
    public final int icon;
    public final DATASOURCE datasource;
    public final Servicios.DATASOURCE servicio;
    public final int id;
    
    public Item(String text, Drawable img, int icon, DATASOURCE datasource, int id) {
    	this.text = text;
        this._img = img;
        this.icon = icon;
        this.datasource = datasource;
        this.id = id;
        this.servicio = null;
    }
    
    public Item(String text, Drawable img, int icon, Servicios.DATASOURCE servicio, int id) {
    	this.text = text;
        this._img = img;
        this.icon = icon;
        this.datasource = null;
        this.id = id;
        this.servicio = servicio;
    }
    
    public Item(String text, Drawable img, int icon) {
        this.text = text;
        this._img = img;
        this.icon = icon;
        this.datasource = null;
        this.id = 0;
        this.servicio = null;
    }
    @Override
    public String toString() {
        return text;
    }
    
    public String getText() {
    	return text;
    }
    
    public int getIcon() {
    	return icon;
    }
    
    public Drawable getImg(){
    	return _img;
    }
}
